package com.cskaoyan.bean;

import com.cskaoyan.bean.params.AdminListBO;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/5
 * @TIME: 21:06
 * @PROJECT_NAME: mallproject2
 */
@NoArgsConstructor
@Data
public class AdminListBean {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<AdminListBO> list;

    public static AdminListBean data(long total,Integer pages,Integer limit,Integer page,List list) {
        AdminListBean adminData = new AdminListBean();
        adminData.setTotal((int) total);
        adminData.setPages(pages);
        adminData.setPage(page);
        adminData.setLimit(limit);
        adminData.setList(list);
        return adminData;
    }
}
